package com.siwei.mes.mapper;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.ExperimentDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试验台账json详情(ExperimentDetail)表数据库访问层
 *
 * @author linzi
 * @since 2023-12-27 23:30:46
 */
public interface ExperimentDetailMapper extends BaseMapper<ExperimentDetail> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentDetail> getList(ExperimentDetail entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    ExperimentDetail loadById(@Param("id") Long id);

    /**
     * 根据试验台账id查询
     *
     * @param experimentId 试验台账id
     * @return
     */
    List<ExperimentDetail> selectByExperimentId(@Param("experimentId") Long experimentId, @Param("testProjectCode") String testProjectCode);
}
